from starlette.responses import Response

from utils.api_resopnse import api_response
from utils.enums import Language


async def switch_language(response: Response, language: Language):
    response.set_cookie(key="language", value=language.value)

    return api_response()